<?php
switch ($this->gallery->layout_id) {
    case 1:
        include_once BASEURL.'web/gallery/view/sempleview.php';
        break;
    case 2:
        include_once BASEURL.'web/gallery/view/listview.php';
        break;
    default:
        include_once BASEURL.'web/gallery/view/sempleview.php';
        break;
}
?>
<?php if($this->isUserLogedIn()){?>
<div class="grid_4">
    <div class="box">
        <h2>
            <a id="toggle-list-items" href="#">Veiksmų sąrašas</a>
        </h2>
        <div><div id="list-items" class="block">
                <h5><?php echo $staticText['list_action'][0];?></h5>
                <ul >
                    <li>
                        <a href="./gallery/add/form/" ><?php echo $staticText['new'][0];?></a>
                    </li>
                    <li>
                        <a href="./gallery/edit/<?php echo $this->gallery->id;?>/" ><?php echo $staticText['edit'][0];?></a>
                    </li>
                    <li>
                        <a href="./gallery/delete/<?php echo $this->gallery->id;?>/" ><?php echo $staticText['delete'][0];?></a>
                    </li>
                </ul>
                <h5><?php echo $staticText['record_action'][0];?></h5>
                <ul>
                    <li>
                        <a href="./photo/add/form/" ><?php echo $staticText['add'][0];?></a>
                    </li>
                    <li>
                        <a href="./photo/delete/gallery/<?php echo $this->gallery->id; ?>/" ><?php echo $staticText['delete'][0];?></a>
                    </li>
                    <li>
                        <a href="./photo/edit/gallery/<?php echo $this->gallery->id; ?>/" ><?php echo $staticText['edit'][0];?></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php }?>
